﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KYO.DAL;
using BusinessLayerHelper;
using ObjectPersistence;


public partial class Admin_Controls_Mod_Information_InformationComment : ListControlBase<Comment>
{


    CommentAssembler service = new CommentAssembler();



    public override PersistentList<Comment> GetListObjects
    {
        get
        {
            CommentCriteria criteria = new CommentCriteria();
            criteria.Set_InformationId(CriteriaBase.AVAILABLE_OPERATORS.EQUALS, UrlRequestHandler.GetId());
            return service.ReadCollection(criteria);


        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {

        if (!IsPostBack)
        {
            ToolbarBox1.Header = "Comment Manager";

            LoadData();

        }
    }




}
